
@echo off 
set top_dir=%cd%
cd ..\..\mingw32
set root_dir=%cd%

::=======mingw32  MINGW_HOME   D:\platform\mingw32=========
@set MINGW_HOME=
@set MINGW_HOME=%root_dir%
@set PATH=%MINGW_HOME%\bin;%PATH%
@set PATH=%MINGW_HOME%\libexec\gcc\i686-w64-mingw32\4.8.2;%PATH%
@set LIBRARY_PATH=%MINGW_HOME%\lib;%LIBRARY_PATH%
@set LIBRARY_PATH=%MINGW_HOME%\lib\gcc\i686-w64-mingw32\4.8.2;%LIBRARY_PATH%
@set C_INCLUDE_PATH=%MINGW_HOME%\include;%C_INCLUDE_PATH%
@set C_INCLUDE_PATH=%MINGW_HOME%\lib\gcc\i686-w64-mingw32\4.8.2\include;%C_INCLUDE_PATH%
@set CPLUS_INCLUDE_PATH=%MINGW_HOME%\i686-w64-mingw32\include;%CPLUS_INCLUDE_PATH%
@set CPLUS_INCLUDE_PATH=%MINGW_HOME%\i686-w64-mingw32\include\c++;%CPLUS_INCLUDE_PATH%
@set CPLUS_INCLUDE_PATH=%MINGW_HOME%\i686-w64-mingw32\include\c++\backward;%CPLUS_INCLUDE_PATH%


cd %top_dir%

gcc --version
mingw32-make --version

@cmd

